
package arboles;

public class manejoCadenas {
    private String string;

    public manejoCadenas() {
    }

    public manejoCadenas(String string) {
        this.string = string;
    }

    public void setString(String string) {
        this.string = string;
    }

    public String getString() {
        return string;
    }   
    
    public void cortar(String str, int valueFirst, int valueSecond) {
        System.out.println(str.substring(valueFirst, valueSecond));
    }
    public int _filtrarSimbolos(String str) {                
        int index_ = 0;       
        str = getString();
        for(int index = 0; index<str.length(); index++) {
            if(str.charAt(index) == '(') {
                index_ = index;
            }                                    
        }
        return index_;
    }    
    public int __filtrarSimbolos(String str) {                
        int index_ = 0;       
        str = getString();
        for(int index = 0; index<str.length(); index++) {
            if(str.charAt(index) == ')') {
                index_ = index;
            }                                    
        }
        return index_;
    }
}

